package com.qdxwx.data.service.user;


import com.qdxwx.models.user.UserThird;

import java.util.List;

/**
 * UserThird接口
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
public interface UserThirdService {

	/**
	 * 添加UserThird
	 * 
	 * @param userThird
	 *            要添加的UserThird
	 * @return id
	 */
	int insert(UserThird userThird);

	/**
	 * 根据id删除一个UserThird
	 * 
	 * @param id
	 *            要删除的id
	 */
	void delete(int id);

	/**
	 * 修改UserThird
	 * 
	 * @param userThird
	 *            要修改的UserThird
	 */
	void update(UserThird userThird);
	/**
	 * 根据id获取第三方信息
	 * @param id
	 * @return
	 */
	UserThird get(Long id);

	UserThird getWx(long userId);

	UserThird getByValue(String value);

	/**
	 * 根据id获取单个UserThird对象
	 * 
	 * @param userId
	 *            要查询的id
	 * @return List<UserThird>
	 */
	List<UserThird> getListByUserId(long userId);

	/**
	 * 根据条件获取UserThird列表
	 * 
	 * @param userThird
	 *            查询条件
	 * @return List<UserThird>
	 */
	List<UserThird> getList(UserThird userThird);
	/**
	 * 查询该账号是否绑定过相同类型的第三方
	 * @param userThird
	 * @return
	 */
	int count(UserThird userThird);
}